A=input().split()
W=["zero", "one"," two"," three"," four"," five", "six"," seven","eight","nine"]

if len(A)==3 :
    for i in range(3):
        if A[i]  in W:
            break
            
else:
    print("Wrong input")

for i in range(10):
        if A[0]==W[i]:
            x= i*100
        if A[1]==W[i]:
            y= i*10
        if A[2]==W[i]:
            z= i*1
print(x,y,z)
